package com.project.nimsen.dto;

import com.project.nimsen.entity.Archives;
import com.project.jdbc.utils.Page;

public class ArchivesDto {
	private String currUserId;//当前登录人编号
	//栏目id
	private String coltypeid;
	private Archives arch;//文章信息
	private String zhucolname;//主栏目名称
	private String zhucolnameid;//主栏目id
	private String microimgid;//缩略图id
	private String fucolname;//副栏目名称以","隔开
	private String fucolnameid;//副栏目id以","隔开
	private String valtitle;//添加验证时用的文章名称
	private String valid;//添加验证时用的id
	private Page page;//分页信息
	private String finderType;//查询类型如果没有值测查询所有的文章，zhu查询主栏目的文章，fu查询副栏目的文章
	//tag里的查询条件
	private String colnumber;//要查询文章所属的栏目级别
	private Integer num = 0;//要查询的前几条信息
	private String orderfile;//排序字段
	private String order;//排序方式
	private Integer pagesize = 0;//要分页时的大小
	private String htmlcontent;//是否显示html文本
	private String textcontent;//是否显示text文本
	private Integer pageIndex =1;//要查询第几页的信息
	private String id;//文章id
	private String imglist;//图片集合字符串
	private String urlist;//url集合字符串
	private String createuser;//当前网站的编号
	private String siteid;//当前站点id
	
	public String getSiteid() {
		return siteid;
	}

	public void setSiteid(String siteid) {
		this.siteid = siteid;
	}

	public String getCreateuser() {
		return createuser;
	}

	public void setCreateuser(String createuser) {
		this.createuser = createuser;
	}

	public String getUrlist() {
		return urlist;
	}

	public void setUrlist(String urlist) {
		this.urlist = urlist;
	}

	public String getImglist() {
		return imglist;
	}

	public void setImglist(String imglist) {
		this.imglist = imglist;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getPageIndex() {
		if(pageIndex==null||pageIndex<2)
			return 1;
		return pageIndex;
	}

	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}

	public String getHtmlcontent() {
		return htmlcontent;
	}

	public void setHtmlcontent(String htmlcontent) {
		this.htmlcontent = htmlcontent;
	}

	public String getTextcontent() {
		return textcontent;
	}

	public void setTextcontent(String textcontent) {
		this.textcontent = textcontent;
	}

	public Integer getPagesize() {
		if(pagesize==null||pagesize<1)
			return 0;
		return pagesize;
	}

	public void setPagesize(Integer pagesize) {
		this.pagesize = pagesize;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getOrderfile() {
		return orderfile;
	}

	public void setOrderfile(String orderfile) {
		this.orderfile = orderfile;
	}

	public Integer getNum() {
		if(num==null||num<1)
			return 0;
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getColnumber() {
		return colnumber;
	}

	public void setColnumber(String colnumber) {
		this.colnumber = colnumber;
	}

	public String getValid() {
		return valid;
	}

	public void setValid(String valid) {
		this.valid = valid;
	}

	public String getValtitle() {
		return valtitle;
	}

	public void setValtitle(String valtitle) {
		this.valtitle = valtitle;
	}

	public String getFinderType() {
		return finderType;
	}

	public void setFinderType(String finderType) {
		this.finderType = finderType;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	public String getCurrUserId() {
		return currUserId;
	}

	public void setCurrUserId(String currUserId) {
		this.currUserId = currUserId;
	}

	public String getZhucolname() {
		return zhucolname;
	}

	public void setZhucolname(String zhucolname) {
		this.zhucolname = zhucolname;
	}

	public String getZhucolnameid() {
		return zhucolnameid;
	}

	public void setZhucolnameid(String zhucolnameid) {
		this.zhucolnameid = zhucolnameid;
	}

	public String getMicroimgid() {
		return microimgid;
	}

	public void setMicroimgid(String microimgid) {
		this.microimgid = microimgid;
	}

	public String getFucolname() {
		return fucolname;
	}

	public void setFucolname(String fucolname) {
		this.fucolname = fucolname;
	}

	public String getFucolnameid() {
		return fucolnameid;
	}

	public void setFucolnameid(String fucolnameid) {
		this.fucolnameid = fucolnameid;
	}

	public Archives getArch() {
		return arch;
	}

	public void setArch(Archives arch) {
		this.arch = arch;
	}

	public String getColtypeid() {
		return coltypeid;
	}

	public void setColtypeid(String coltypeid) {
		this.coltypeid = coltypeid;
	}
}
